#include<stdio.h>


/*指针指向一个地址*/
/*指针占8个字节*/
void printNums(int *pNum,int numSize)
{
    printf("pNum:%p\n",pNum);
    for(int idx = 0;idx < numSize;idx++)
    {
        printf("pNum[%d] = %d\n",idx,pNum[idx]);
    }
}



int main()
{
    int nums[10] = {1,2,3,4,5,6,7,8,9,10};
    int sizes = sizeof(nums);
    printf("size = %d\n",sizes);

    int size = sizeof(nums[0]);
    printf("size = %d\n",size);

    /*数组名是数组的首地址*/
    printf("nums = %p\n",nums);
    printNums(nums,sizes/size);
    return 0;
}